package com.lagou.goodshop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @Authther: mrwu
 * @date:2021/5/15-05
 * @Description:com.lagou.goodshop.pojo
 */
@Data
@TableName("my_goods")
public class Goods implements Serializable {

    //防止后期分库分表直接使用雪花算法生成id
  @TableId(type = IdType.ASSIGN_ID)
  private   Long id;
  //商品库存
  private  int count;
  //商品名称
  @TableField("goods_name")
  private  String goodsName;

}
